using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetQQGroupResponse : GeneratedMessageLite<GetQQGroupResponse, GetQQGroupResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetQQGroupResponse, GetQQGroupResponse.Builder>
		{
			private bool resultIsReadOnly;
			private GetQQGroupResponse result;
			protected override GetQQGroupResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetQQGroupResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetQQGroupResponse DefaultInstanceForType
			{
				get
				{
					return GetQQGroupResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint OpType
			{
				get
				{
					return this.result.OpType;
				}
				set
				{
					this.SetOpType(value);
				}
			}
			public QQGroupList QQGroup
			{
				get
				{
					return this.result.QQGroup;
				}
				set
				{
					this.SetQQGroup(value);
				}
			}
			public QQFriendList QQFriend
			{
				get
				{
					return this.result.QQFriend;
				}
				set
				{
					this.SetQQFriend(value);
				}
			}
			public Builder()
			{
				this.result = GetQQGroupResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetQQGroupResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetQQGroupResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetQQGroupResponse other = this.result;
					this.result = new GetQQGroupResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetQQGroupResponse.Builder Clear()
			{
				this.result = GetQQGroupResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetQQGroupResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetQQGroupResponse.Builder(this.result);
				}
				return new GetQQGroupResponse.Builder().MergeFrom(this.result);
			}
			public override GetQQGroupResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetQQGroupResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetQQGroupResponse)
				{
					return this.MergeFrom((GetQQGroupResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetQQGroupResponse.Builder MergeFrom(GetQQGroupResponse other)
			{
				return this;
			}
			public override GetQQGroupResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetQQGroupResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetQQGroupResponse._getQQGroupResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetQQGroupResponse._getQQGroupResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasOpType = input.ReadUInt32(ref this.result.opType_);
							continue;
						}
						if (num3 == 26u)
						{
							QQGroupList.Builder builder2 = QQGroupList.CreateBuilder();
							if (this.result.hasQQGroup)
							{
								builder2.MergeFrom(this.QQGroup);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.QQGroup = builder2.BuildPartial();
							continue;
						}
						if (num3 == 34u)
						{
							QQFriendList.Builder builder3 = QQFriendList.CreateBuilder();
							if (this.result.hasQQFriend)
							{
								builder3.MergeFrom(this.QQFriend);
							}
							input.ReadMessage(builder3, extensionRegistry);
							this.QQFriend = builder3.BuildPartial();
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetQQGroupResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public GetQQGroupResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public GetQQGroupResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public GetQQGroupResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public GetQQGroupResponse.Builder SetOpType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasOpType = true;
				this.result.opType_ = value;
				return this;
			}
			public GetQQGroupResponse.Builder ClearOpType()
			{
				this.PrepareBuilder();
				this.result.hasOpType = false;
				this.result.opType_ = 0u;
				return this;
			}
			public GetQQGroupResponse.Builder SetQQGroup(QQGroupList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasQQGroup = true;
				this.result.qQGroup_ = value;
				return this;
			}
			public GetQQGroupResponse.Builder SetQQGroup(QQGroupList.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasQQGroup = true;
				this.result.qQGroup_ = builderForValue.Build();
				return this;
			}
			public GetQQGroupResponse.Builder MergeQQGroup(QQGroupList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasQQGroup && this.result.qQGroup_ != QQGroupList.DefaultInstance)
				{
					this.result.qQGroup_ = QQGroupList.CreateBuilder(this.result.qQGroup_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.qQGroup_ = value;
				}
				this.result.hasQQGroup = true;
				return this;
			}
			public GetQQGroupResponse.Builder ClearQQGroup()
			{
				this.PrepareBuilder();
				this.result.hasQQGroup = false;
				this.result.qQGroup_ = null;
				return this;
			}
			public GetQQGroupResponse.Builder SetQQFriend(QQFriendList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasQQFriend = true;
				this.result.qQFriend_ = value;
				return this;
			}
			public GetQQGroupResponse.Builder SetQQFriend(QQFriendList.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasQQFriend = true;
				this.result.qQFriend_ = builderForValue.Build();
				return this;
			}
			public GetQQGroupResponse.Builder MergeQQFriend(QQFriendList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasQQFriend && this.result.qQFriend_ != QQFriendList.DefaultInstance)
				{
					this.result.qQFriend_ = QQFriendList.CreateBuilder(this.result.qQFriend_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.qQFriend_ = value;
				}
				this.result.hasQQFriend = true;
				return this;
			}
			public GetQQGroupResponse.Builder ClearQQFriend()
			{
				this.PrepareBuilder();
				this.result.hasQQFriend = false;
				this.result.qQFriend_ = null;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int OpTypeFieldNumber = 2;
		public const int QQGroupFieldNumber = 3;
		public const int QQFriendFieldNumber = 4;
		private static readonly GetQQGroupResponse defaultInstance;
		private static readonly string[] _getQQGroupResponseFieldNames;
		private static readonly uint[] _getQQGroupResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasOpType;
		private uint opType_;
		private bool hasQQGroup;
		private QQGroupList qQGroup_;
		private bool hasQQFriend;
		private QQFriendList qQFriend_;
		private int memoizedSerializedSize = -1;
		public static GetQQGroupResponse DefaultInstance
		{
			get
			{
				return GetQQGroupResponse.defaultInstance;
			}
		}
		public override GetQQGroupResponse DefaultInstanceForType
		{
			get
			{
				return GetQQGroupResponse.DefaultInstance;
			}
		}
		protected override GetQQGroupResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint OpType
		{
			get
			{
				return this.opType_;
			}
		}
		public QQGroupList QQGroup
		{
			get
			{
				return this.qQGroup_ ?? QQGroupList.DefaultInstance;
			}
		}
		public QQFriendList QQFriend
		{
			get
			{
				return this.qQFriend_ ?? QQFriendList.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasOpType && this.hasQQGroup && this.hasQQFriend && this.BaseResponse.IsInitialized && this.QQGroup.IsInitialized && this.QQFriend.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasOpType)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.OpType);
				}
				if (this.hasQQGroup)
				{
					num += CodedOutputStream.ComputeMessageSize(3, this.QQGroup);
				}
				if (this.hasQQFriend)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.QQFriend);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetQQGroupResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getQQGroupResponseFieldNames = GetQQGroupResponse._getQQGroupResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, getQQGroupResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasOpType)
			{
				output.WriteUInt32(2, getQQGroupResponseFieldNames[1], this.OpType);
			}
			if (this.hasQQGroup)
			{
				output.WriteMessage(3, getQQGroupResponseFieldNames[3], this.QQGroup);
			}
			if (this.hasQQFriend)
			{
				output.WriteMessage(4, getQQGroupResponseFieldNames[2], this.QQFriend);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasOpType)
			{
				num ^= this.opType_.GetHashCode();
			}
			if (this.hasQQGroup)
			{
				num ^= this.qQGroup_.GetHashCode();
			}
			if (this.hasQQFriend)
			{
				num ^= this.qQFriend_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			GetQQGroupResponse getQQGroupResponse = value as GetQQGroupResponse;
			return getQQGroupResponse != null && (this.hasBaseResponse == getQQGroupResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(getQQGroupResponse.baseResponse_))) && (this.hasOpType == getQQGroupResponse.hasOpType && (!this.hasOpType || this.opType_.Equals(getQQGroupResponse.opType_))) && (this.hasQQGroup == getQQGroupResponse.hasQQGroup && (!this.hasQQGroup || this.qQGroup_.Equals(getQQGroupResponse.qQGroup_))) && (this.hasQQFriend == getQQGroupResponse.hasQQFriend && (!this.hasQQFriend || this.qQFriend_.Equals(getQQGroupResponse.qQFriend_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetQQGroupResponse, GetQQGroupResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<GetQQGroupResponse, GetQQGroupResponse.Builder>.PrintField("OpType", this.hasOpType, this.opType_, writer);
			GeneratedMessageLite<GetQQGroupResponse, GetQQGroupResponse.Builder>.PrintField("QQGroup", this.hasQQGroup, this.qQGroup_, writer);
			GeneratedMessageLite<GetQQGroupResponse, GetQQGroupResponse.Builder>.PrintField("QQFriend", this.hasQQFriend, this.qQFriend_, writer);
		}
		public static GetQQGroupResponse ParseFrom(byte[] data)
		{
			return GetQQGroupResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetQQGroupResponse MakeReadOnly()
		{
			return this;
		}
		public static GetQQGroupResponse.Builder CreateBuilder()
		{
			return new GetQQGroupResponse.Builder();
		}
		public override GetQQGroupResponse.Builder ToBuilder()
		{
			return GetQQGroupResponse.CreateBuilder(this);
		}
		public override GetQQGroupResponse.Builder CreateBuilderForType()
		{
			return new GetQQGroupResponse.Builder();
		}
		public static GetQQGroupResponse.Builder CreateBuilder(GetQQGroupResponse prototype)
		{
			return new GetQQGroupResponse.Builder(prototype);
		}
		static GetQQGroupResponse()
		{
			GetQQGroupResponse.defaultInstance = new GetQQGroupResponse().MakeReadOnly();
			GetQQGroupResponse._getQQGroupResponseFieldNames = new string[]
			{
				"BaseResponse",
				"OpType",
				"QQFriend",
				"QQGroup"
			};
			GetQQGroupResponse._getQQGroupResponseFieldTags = new uint[]
			{
				10u,
				16u,
				34u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.GetQQGroupResponse.Descriptor, null);
		}
	}
}
